import request from '@/utils/request'

// 查询车辆树
export function vehicleTree(query) {
  return request({
    url: '/safety/vehicle/tree',
    method: 'get',
    params: query
  })
}
export function vehicleTreeList(query) {
  return request({
    url: '/safety/vehicle/list',
    method: 'get',
    params: query
  })
}

// 车辆汇总
export function vehicleCollect() {
  return request({
    url: '/safety/vehicle/collect',
    method: 'get'
  })
}
// 查询安全车辆详情
export function vehicleDetail(id) {
  return request({
    url: '/safety/vehicle/'+id,
    method: 'get'
  })
}